package com.linan.util;

import lombok.Data;

import java.util.Map;

@Data
public class AjaxResult {
    Boolean success =true;
    String message = "操作成功";
    Object data;


    public AjaxResult(String message,Boolean success) {
        this.message = message;
        if(success!=null){
            this.success=success;
        }
    }
    public AjaxResult(Object map) {
        this.data=map;
    }
    public AjaxResult() {
    }
}
